<template>
  <!-- 右侧查看更多组件 -->
  <div class="xtx-more">
    <router-link :to="path">
      <span>查看更多</span>
      <i class="iconfont icon-angle-right"></i>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'XtxMore',
  props: {
    path: {
      type: String,
      default: '/'
    }
  }
}
</script>

<style lang="less" scoped>
.xtx-more {
  a {
    margin-bottom: 2px;
    span {
      font-size: 16px;
      vertical-align: middle;
      margin-right: 4px;
      color: #999;
    }
    i {
      font-size: 14px;
      vertical-align: middle;
      position: relative;
      top: 2px;
      color: #999;
    }
    &:hover {
      span,i {
        color: @xtxColor;
      }
    }
  }
}
</style>
